package com.baizhi.springboot.dao;

import com.baizhi.springboot.entity.Counter;
import com.baizhi.springboot.entity.Lesson;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LessonDao {
    List<Lesson> selectLessonByPage(@Param("offset")Integer offset, @Param("limit")Integer limit,@Param("name")String name);

    Integer selectCount(@Param("name")String name);

    void insertLesson(Lesson lesson);

    void deleteLesson(Integer id);

    List<Counter> selectCounterByPage(@Param("offset")Integer offset, @Param("limit")Integer limit, @Param("lessonId")Integer lessonId);

    Integer selectCounterCount(@Param("lessonId")Integer lessonId);
}
